﻿using System;
using System.Data.SqlClient;
using DataAccess;

namespace Business
{
 public   class CountyBusiness
    {
     /// <summary>
        /// Gets the instance.
        /// </summary>
        /// <value>
        /// The instance.
        /// </value>
        public static CountyBusiness Instance { get; private set; }

        /// <summary>
        /// Initializes the <see cref="AddressBusiness" /> class.
        /// </summary>
        static CountyBusiness() { Instance = new CountyBusiness(); }

      
        public Entities.County GetCounty(string countyId)
        {
            try
            {
                if (!string.IsNullOrEmpty(countyId) && countyId != Guid.Empty.ToString())
                    return CountyDataAccess.Instance.GetCounty(countyId);
                return null;
            }
            catch (SqlException)
            {


                return null;
            }

        }
    
    }
}
